<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cube for iOS: CPipeline类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cube for iOS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('interface_c_pipeline.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="interface_c_pipeline-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CPipeline类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>数据通道服务接口。  
 <a href="interface_c_pipeline.html#details">更多...</a></p>

<p><code>#import &lt;<a class="el" href="_c_pipeline_8h_source.html">CPipeline.h</a>&gt;</code></p>
<div class="dynheader">
类 CPipeline 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_c_pipeline.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:a927dc8c08352ffd5db61ba7df35131f8"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#a927dc8c08352ffd5db61ba7df35131f8">initWithName:</a></td></tr>
<tr class="memdesc:a927dc8c08352ffd5db61ba7df35131f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过指定管道名称初始化。  <a href="interface_c_pipeline.html#a927dc8c08352ffd5db61ba7df35131f8">更多...</a><br /></td></tr>
<tr class="separator:a927dc8c08352ffd5db61ba7df35131f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24da78693aa8e31d360cea84d208af98"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#a24da78693aa8e31d360cea84d208af98">open</a></td></tr>
<tr class="memdesc:a24da78693aa8e31d360cea84d208af98"><td class="mdescLeft">&#160;</td><td class="mdescRight">开启管道。  <a href="interface_c_pipeline.html#a24da78693aa8e31d360cea84d208af98">更多...</a><br /></td></tr>
<tr class="separator:a24da78693aa8e31d360cea84d208af98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7d44eb9e7bc23a13f72f431f51c00cb"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#ac7d44eb9e7bc23a13f72f431f51c00cb">close</a></td></tr>
<tr class="memdesc:ac7d44eb9e7bc23a13f72f431f51c00cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭管道。  <a href="interface_c_pipeline.html#ac7d44eb9e7bc23a13f72f431f51c00cb">更多...</a><br /></td></tr>
<tr class="separator:ac7d44eb9e7bc23a13f72f431f51c00cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1378ddd46892c462e9ca7c42d00d087f"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#a1378ddd46892c462e9ca7c42d00d087f">isReady</a></td></tr>
<tr class="memdesc:a1378ddd46892c462e9ca7c42d00d087f"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据通道是否就绪。  <a href="interface_c_pipeline.html#a1378ddd46892c462e9ca7c42d00d087f">更多...</a><br /></td></tr>
<tr class="separator:a1378ddd46892c462e9ca7c42d00d087f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30f439dab6668985c98958e67adde00d"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#a30f439dab6668985c98958e67adde00d">send:withPacket:handleResponse:</a></td></tr>
<tr class="memdesc:a30f439dab6668985c98958e67adde00d"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送数据。  <a href="interface_c_pipeline.html#a30f439dab6668985c98958e67adde00d">更多...</a><br /></td></tr>
<tr class="separator:a30f439dab6668985c98958e67adde00d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a219d66a3a90af3d6df21e8ff933b1ef3"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#a219d66a3a90af3d6df21e8ff933b1ef3">send:withPacket:</a></td></tr>
<tr class="memdesc:a219d66a3a90af3d6df21e8ff933b1ef3"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送数据。  <a href="interface_c_pipeline.html#a219d66a3a90af3d6df21e8ff933b1ef3">更多...</a><br /></td></tr>
<tr class="separator:a219d66a3a90af3d6df21e8ff933b1ef3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c3eb087cd8c277972589a4e5c46f573"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#a1c3eb087cd8c277972589a4e5c46f573">setRemoteAddress:withPort:</a></td></tr>
<tr class="memdesc:a1c3eb087cd8c277972589a4e5c46f573"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置服务的地址和端口。  <a href="interface_c_pipeline.html#a1c3eb087cd8c277972589a4e5c46f573">更多...</a><br /></td></tr>
<tr class="separator:a1c3eb087cd8c277972589a4e5c46f573"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ee9641947d8274c687d03b04cf0cb3d"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#a8ee9641947d8274c687d03b04cf0cb3d">addListener:listener:</a></td></tr>
<tr class="memdesc:a8ee9641947d8274c687d03b04cf0cb3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加监听器。  <a href="interface_c_pipeline.html#a8ee9641947d8274c687d03b04cf0cb3d">更多...</a><br /></td></tr>
<tr class="separator:a8ee9641947d8274c687d03b04cf0cb3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad825dbad01afdfea0eec8af5658e78f"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#aad825dbad01afdfea0eec8af5658e78f">removeListener:listener:</a></td></tr>
<tr class="memdesc:aad825dbad01afdfea0eec8af5658e78f"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除监听器。  <a href="interface_c_pipeline.html#aad825dbad01afdfea0eec8af5658e78f">更多...</a><br /></td></tr>
<tr class="separator:aad825dbad01afdfea0eec8af5658e78f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a637c280c813375e43382c158b06ce32d"><td class="memItemLeft" align="right" valign="top">(__kindof NSMutableArray&lt; id&lt; <a class="el" href="protocol_c_pipeline_listener-p.html">CPipelineListener</a> &gt;&gt; *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#a637c280c813375e43382c158b06ce32d">getAllListeners</a></td></tr>
<tr class="memdesc:a637c280c813375e43382c158b06ce32d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取所有监听器。  <a href="interface_c_pipeline.html#a637c280c813375e43382c158b06ce32d">更多...</a><br /></td></tr>
<tr class="separator:a637c280c813375e43382c158b06ce32d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa78717b160b5c27d575bed0dfb6790fb"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#aa78717b160b5c27d575bed0dfb6790fb">triggerListener:packet:</a></td></tr>
<tr class="memdesc:aa78717b160b5c27d575bed0dfb6790fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">触发来自服务器的数据回调。  <a href="interface_c_pipeline.html#aa78717b160b5c27d575bed0dfb6790fb">更多...</a><br /></td></tr>
<tr class="separator:aa78717b160b5c27d575bed0dfb6790fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d8e4053e04523e528e2a2721c5d8514"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_pipeline_state.html">CPipelineState</a> *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_pipeline.html#a8d8e4053e04523e528e2a2721c5d8514">extractState:</a></td></tr>
<tr class="memdesc:a8d8e4053e04523e528e2a2721c5d8514"><td class="mdescLeft">&#160;</td><td class="mdescRight">提取状态数据。  <a href="interface_c_pipeline.html#a8d8e4053e04523e528e2a2721c5d8514">更多...</a><br /></td></tr>
<tr class="separator:a8d8e4053e04523e528e2a2721c5d8514"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a09f9697d6d8b6ff723bf8e77a32978ea"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_pipeline.html#a09f9697d6d8b6ff723bf8e77a32978ea">name</a></td></tr>
<tr class="separator:a09f9697d6d8b6ff723bf8e77a32978ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0364ac603968a5f966df3f4c3db0beb"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_pipeline.html#ae0364ac603968a5f966df3f4c3db0beb">address</a></td></tr>
<tr class="separator:ae0364ac603968a5f966df3f4c3db0beb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7feddb2d19b0fbbdedcae1c7f8a2ea53"><td class="memItemLeft" align="right" valign="top">NSInteger&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_pipeline.html#a7feddb2d19b0fbbdedcae1c7f8a2ea53">port</a></td></tr>
<tr class="separator:a7feddb2d19b0fbbdedcae1c7f8a2ea53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16a5fac140045bd2820a59e4a99b9160"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_pipeline.html#a16a5fac140045bd2820a59e4a99b9160">tokenCode</a></td></tr>
<tr class="separator:a16a5fac140045bd2820a59e4a99b9160"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>数据通道服务接口。 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="a8ee9641947d8274c687d03b04cf0cb3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ee9641947d8274c687d03b04cf0cb3d">&#9670;&nbsp;</a></span>addListener:listener:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) addListener: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>destination</em></td>
        </tr>
        <tr>
          <td class="paramkey">listener:</td>
          <td></td>
          <td class="paramtype">(id&lt; <a class="el" href="protocol_c_pipeline_listener-p.html">CPipelineListener</a> &gt;)&#160;</td>
          <td class="paramname"><em>listener</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加监听器。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">destination</td><td>指定监听的目标或识别串。 </td></tr>
    <tr><td class="paramname">listener</td><td>指定通道监听器。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac7d44eb9e7bc23a13f72f431f51c00cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7d44eb9e7bc23a13f72f431f51c00cb">&#9670;&nbsp;</a></span>close</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) close </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭管道。 </p>

</div>
</div>
<a id="a8d8e4053e04523e528e2a2721c5d8514"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d8e4053e04523e528e2a2721c5d8514">&#9670;&nbsp;</a></span>extractState:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_c_pipeline_state.html">CPipelineState</a> *) extractState: </td>
          <td></td>
          <td class="paramtype">(NSDictionary *)&#160;</td>
          <td class="paramname"><em>state</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>提取状态数据。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">state</td><td>JSON 格式的状态描述。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回通道状态。 </dd></dl>

</div>
</div>
<a id="a637c280c813375e43382c158b06ce32d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a637c280c813375e43382c158b06ce32d">&#9670;&nbsp;</a></span>getAllListeners</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (__kindof NSMutableArray&lt;id&lt;<a class="el" href="protocol_c_pipeline_listener-p.html">CPipelineListener</a>&gt;&gt; *) getAllListeners </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取所有监听器。 </p>
<dl class="section return"><dt>返回</dt><dd>返回所有监听器。 </dd></dl>

</div>
</div>
<a id="a927dc8c08352ffd5db61ba7df35131f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a927dc8c08352ffd5db61ba7df35131f8">&#9670;&nbsp;</a></span>initWithName:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) initWithName: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>name</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过指定管道名称初始化。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>指定管道名。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1378ddd46892c462e9ca7c42d00d087f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1378ddd46892c462e9ca7c42d00d087f">&#9670;&nbsp;</a></span>isReady</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) isReady </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>数据通道是否就绪。 </p>
<dl class="section return"><dt>返回</dt><dd>如果就绪返回 <code>true</code> 。 </dd></dl>

</div>
</div>
<a id="a24da78693aa8e31d360cea84d208af98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24da78693aa8e31d360cea84d208af98">&#9670;&nbsp;</a></span>open</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) open </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>开启管道。 </p>

</div>
</div>
<a id="aad825dbad01afdfea0eec8af5658e78f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad825dbad01afdfea0eec8af5658e78f">&#9670;&nbsp;</a></span>removeListener:listener:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) removeListener: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>destination</em></td>
        </tr>
        <tr>
          <td class="paramkey">listener:</td>
          <td></td>
          <td class="paramtype">(id&lt; <a class="el" href="protocol_c_pipeline_listener-p.html">CPipelineListener</a> &gt;)&#160;</td>
          <td class="paramname"><em>listener</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移除监听器。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">destination</td><td>指定监听的目标或识别串。 </td></tr>
    <tr><td class="paramname">listener</td><td>指定通道监听器。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a219d66a3a90af3d6df21e8ff933b1ef3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a219d66a3a90af3d6df21e8ff933b1ef3">&#9670;&nbsp;</a></span>send:withPacket:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) send: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>destination</em></td>
        </tr>
        <tr>
          <td class="paramkey">withPacket:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_packet.html">CPacket</a> *)&#160;</td>
          <td class="paramname"><em>packet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>发送数据。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">destination</td><td>指定通道的发送目标或接收端识别串。 </td></tr>
    <tr><td class="paramname">packet</td><td>指定待发送的数据包。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a30f439dab6668985c98958e67adde00d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30f439dab6668985c98958e67adde00d">&#9670;&nbsp;</a></span>send:withPacket:handleResponse:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) send: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>destination</em></td>
        </tr>
        <tr>
          <td class="paramkey">withPacket:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_packet.html">CPacket</a> *)&#160;</td>
          <td class="paramname"><em>packet</em></td>
        </tr>
        <tr>
          <td class="paramkey">handleResponse:</td>
          <td></td>
          <td class="paramtype">(void(^)(<a class="el" href="interface_c_packet.html">CPacket</a> *packet))&#160;</td>
          <td class="paramname"><em>handleResponse</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>发送数据。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">destination</td><td>指定通道的发送目标或接收端识别串。 </td></tr>
    <tr><td class="paramname">packet</td><td>指定待发送的数据包。 </td></tr>
    <tr><td class="paramname">handleResponse</td><td>本次数据发送对应的应答回调。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1c3eb087cd8c277972589a4e5c46f573"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c3eb087cd8c277972589a4e5c46f573">&#9670;&nbsp;</a></span>setRemoteAddress:withPort:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) setRemoteAddress: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>address</em></td>
        </tr>
        <tr>
          <td class="paramkey">withPort:</td>
          <td></td>
          <td class="paramtype">(NSInteger)&#160;</td>
          <td class="paramname"><em>port</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置服务的地址和端口。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">address</td><td>服务器访问地址。 </td></tr>
    <tr><td class="paramname">port</td><td>服务器访问端口。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa78717b160b5c27d575bed0dfb6790fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa78717b160b5c27d575bed0dfb6790fb">&#9670;&nbsp;</a></span>triggerListener:packet:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) triggerListener: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>destination</em></td>
        </tr>
        <tr>
          <td class="paramkey">packet:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_packet.html">CPacket</a> *)&#160;</td>
          <td class="paramname"><em>packet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>触发来自服务器的数据回调。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">destination</td><td>通道的描述串。 </td></tr>
    <tr><td class="paramname">packet</td><td>服务器的数据包。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="ae0364ac603968a5f966df3f4c3db0beb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0364ac603968a5f966df3f4c3db0beb">&#9670;&nbsp;</a></span>address</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString*) address</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a09f9697d6d8b6ff723bf8e77a32978ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09f9697d6d8b6ff723bf8e77a32978ea">&#9670;&nbsp;</a></span>name</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString*) name</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a7feddb2d19b0fbbdedcae1c7f8a2ea53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7feddb2d19b0fbbdedcae1c7f8a2ea53">&#9670;&nbsp;</a></span>port</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSInteger) port</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a16a5fac140045bd2820a59e4a99b9160"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16a5fac140045bd2820a59e4a99b9160">&#9670;&nbsp;</a></span>tokenCode</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString*) tokenCode</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="_c_pipeline_8h_source.html">CPipeline.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="interface_c_pipeline.html">CPipeline</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
